package com.patttern.creativity.singlenton;

/**
 * @Author: root
 * @Date: 2018/12/3 21:10
 * <p>
 * 饿汉式单例模式
 */
public class Singleton01 {
    private static Singleton01 instance = new Singleton01();

    private Singleton01() {
    }

    public static Singleton01 getInstance() {
        return instance;
    }
}
